//
//  LoginService.h
//  CoolRollerSkating
//
//  Created by WSL on 15/11/20.
//  Copyright © 2015年 Coollang. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^GetVarifyCodeBlock)(BOOL successed,NSString *info);
typedef void(^LoginCompleteBlock)(BOOL successed, BOOL isFirstLogin);
typedef void(^LoginByThirdPartPlatformBlock)(BOOL successed, NSString *info, BOOL isFirstLogin);

@interface LoginService : NSObject

/**获取验证码方法回调*/
@property (copy, nonatomic) GetVarifyCodeBlock varifyCodeblock;

- (void)loginByWeChatWithLoginByThirdPartPlatformBlock:(LoginByThirdPartPlatformBlock)block;

- (void)loginByPhone:(NSString *)phoneNum varifyNum:(NSString *)varifyNum completeBlock:(LoginCompleteBlock)block;

- (void)getSMSVarifyCode:(NSString *)phone;

- (BOOL)isInstallWechat;

- (void)loginByEmail:(NSString *)email password:(NSString *)password completionBlock:(LoginCompleteBlock)block;

- (void)loginByFacebookWithLoginByThirdPartPlatformBlock:(LoginByThirdPartPlatformBlock)block;

- (FUIAlertView *)AlertViewWithTitle:(NSString *)title message:(NSString *)message cancelButtonTitle:(NSString *)cancelTitle;

@end
